using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class cadastroEventos : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.TabContainer1.ActiveTabIndex = 1;
    }
    protected void ButtonCadastrar_Click(object sender, EventArgs e)
    {
        this.cadastrar();
    }

    private void cadastrar()
    {
        FacadeService service = new FacadeService();
        this.LabelConfirmacao.Text = "Indicador de usabilidade cadastrado com sucesso";
        service.CriaEvento(this.TextBoxNome.Text, this.TextBoxDescricao.Text);
        ApagarTextos.apagar(this);

    }
}
